package com.sy;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author songyi
 * @className Provider2Main
 * @description TODO
 * @date 2020/8/14 0014 15:20
 */
public class Provider2Main {

    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfiguration.class);
        context.start();
        Thread.currentThread().join();
    }

    @Configuration
    @EnableDubbo(scanBasePackages = "com.sy.service.impl")
    @PropertySource("classpath:/dubbo-provider.properties")
    static class ProviderConfiguration {

    }
}
